package org.test.model;

import org.test.mybatisplugin.PageInfo;

public class User {
	private int id ;
	private String userName;
	private int userAge;
	private String userAddress;
	
	//添加 此属性是为了 使用mybatis 分页插件
	private PageInfo page = null;
	
	public User(){
		this(0);
	}
	
	public User(int id){
		this.id = id;
		page = new PageInfo(8,2);
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public int getUserAge() {
		return userAge;
	}
	public void setUserAge(int userAge) {
		this.userAge = userAge;
	}
	public String getUserAddress() {
		return userAddress;
	}
	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}
	
	
	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", userAge="
				+ userAge + ", userAddress=" + userAddress + "]";
	}

	public PageInfo getPage() {
		return page;
	}

	public void setPage(PageInfo page) {
		this.page = page;
	}
	
}
